package com.love.cloud.admin.api.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;
import lombok.EqualsAndHashCode;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author hongdongqu
 */
@Data
@Entity
@Table(name = "ding_talk_dept_config")
@TableName("ding_talk_dept_config")
@EqualsAndHashCode(callSuper = false)
@org.hibernate.annotations.Table(appliesTo = "ding_talk_dept_config",comment="钉钉组织配置功能")
public class DingTalkDeptConfig implements Serializable {
    private static final long serialVersionUID = 1L;
    /**
     * id
     */
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    @Id
    @Column( nullable = false , columnDefinition = "bigint(20) COMMENT '逻辑id主键'")
    private Long id;

    /**
     * 名称
     */
    @Column( columnDefinition = "varchar(255) COMMENT '名称'")
    private String name;

    /**
     * 浙政钉orgCode
     */
    @Column( columnDefinition = "varchar(255) COMMENT '浙政钉orgCode'")
    private String orgCode;

    /**
     * 上级orgCode
     */
    @Column( columnDefinition = "varchar(255) COMMENT '上级orgCode'")
    private String pOrgCode;

    /**
     * 路径
     */
    @Column( columnDefinition = "varchar(2000) COMMENT '路径'")
    private String path;

    /**
     * 路径名称
     */
    @Column( columnDefinition = "varchar(2000) COMMENT '路径'")
    private String pathName;

    /**
     * 级别
     */
    @Column( columnDefinition = "int COMMENT '级别'")
    private Integer level;
}
